<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="//cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript" src="//static.runoob.com/assets/qrcode/qrcode.min.js"></script>
</head>
<body>
<div id="qrcode" style="width: 100px; height: 100px;margin-top: 15px">

</div>

</body>
<script type="text/javascript">
    new QRCode(document.getElementById("qrcode"),{
        text:"1",
        width: 100,
        height:100
    })


</script>

</html>